﻿// (c) Copyright slimCODE Software Inc. - www.slimcode.com
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
// All other rights reserved.

using System;
using System.Collections.Generic;
using System.Text;
using SlimCode.Windows.Forms.Mobile;

namespace SlimCode.SlimPasswords
{
  internal class PasswordLengthOptionView : UpDownOptionView, IOptionView
  {
    public PasswordLengthOptionView()
      : base( Program.Settings.PasswordScheme.Length, 4, 64, "Password length: {0}", null )
    {
    }

    #region IOptionView Members

    public void Apply()
    {
      Program.Settings.PasswordScheme.Length = this.Value;
    }

    public void Cancel()
    {
    }

    public void OnClicked( IScreenHost host, IScreen screen )
    {
    }

    #endregion
  }
}
